package org.com.system.user;

import javax.persistence.Table;

import org.com.system.util.mate.Link;
import org.com.system.util.mate.Order;
import org.com.system.util.mate.SQLMate;
import org.com.system.util.utils.DateUtils;

@Table(name="sys_user_info")
public class User{

	@Order
	private String id;
	
	@SQLMate(link=Link.LIKE)
	private String userName;//真实姓名
	
	private String loginName;//帐号名称
	
	private String loginPass;//帐号登陆密码
	
	private String role;//角色id
	
	private String email;//邮箱帐号
	
	private String emailType;//邮箱类型
	
	private String emailUser;//邮箱账户名
	
	private String emailPass;//邮箱密码
	
	private String photo;//照片地址
	
	private String birth;//出生日期
	
	private String sex;//性别：0女,1男
	
	private String reference;//档案资料所在处 
	
	private String dept;//部门id;
	
	@SQLMate(link=Link.LIKE)
	private String opt;//备注
	
	private String createTime;//创建时间
	
	private String createPerson;//创建人
	
	public User(){
		setCreateTime(DateUtils.getSystime());
	}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getLoginPass() {
		return loginPass;
	}

	public void setLoginPass(String loginPass) {
		this.loginPass = loginPass;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
	
	public String getEmailType() {
		return emailType;
	}

	public void setEmailType(String emailType) {
		this.emailType = emailType;
	}
	
	public String getEmailUser() {
		return emailUser;
	}

	public void setEmailUser(String emailUser) {
		this.emailUser = emailUser;
	}

	public String getEmailPass() {
		return emailPass;
	}

	public void setEmailPass(String emailPass) {
		this.emailPass = emailPass;
	}

	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public String getBirth() {
		return birth;
	}

	public void setBirth(String birth) {
		this.birth = birth;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getReference() {
		return reference;
	}

	public void setReference(String reference) {
		this.reference = reference;
	}

	public String getDept() {
		return dept;
	}

	public void setDept(String dept) {
		this.dept = dept;
	}

	public String getOpt() {
		return opt;
	}

	public void setOpt(String opt) {
		this.opt = opt;
	}
	

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getCreatePerson() {
		return createPerson;
	}

	public void setCreatePerson(String createPerson) {
		this.createPerson = createPerson;
	}
	
}
